// myviews/doctor/doctor.js
var globalData = getApp().globalData;
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
  doctors:[],
  appDomain: app.globalData.appDomain
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var userid = globalData.backUserInfo.syS0100;
    var _this = this;
    var url = getApp().globalData.apiDomain + "/WAttention?userid=" + userid;
    wx.request({
      url: url,
      method: "GET",
      success: function (res) {
        console.log(res);
        _this.setData({
          doctors: res.data.data
        })
      }
    })
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})